package net.apexes.demo.codegen.ormlite.annotation.entity;

import com.j256.ormlite.field.*;
import com.j256.ormlite.table.*;
import net.apexes.demo.codegen.entity.base.OrmliteEntityBase;

/**
 * GoodsFeature. Corresponds to the database table "GOODS_FEATURE"
 */
@DatabaseTable(tableName = "GOODS_FEATURE")
public class GoodsFeature extends OrmliteEntityBase {

    private static final long serialVersionUID = 1L;

    /**
     * The columns of table "GOODS_FEATURE"
     */
    public interface $ extends OrmliteEntityBase.$ {

        /**
         * FEATURE_GROUP_ID
         */
        public static final String featureGroupId = "FEATURE_GROUP_ID";

        /**
         * FEATURE_ID
         */
        public static final String featureId = "FEATURE_ID";

        /**
         * GOODS_BASE_ID
         */
        public static final String goodsBaseId = "GOODS_BASE_ID";

        /**
         * GOODS_ID
         */
        public static final String goodsId = "GOODS_ID";

        /**
         * TEMPLATE_ID
         */
        public static final String templateId = "TEMPLATE_ID";

    }

    @DatabaseField(columnName = $.featureGroupId, canBeNull = false)
    private String featureGroupId;

    @DatabaseField(columnName = $.featureId, canBeNull = false)
    private String featureId;

    @DatabaseField(columnName = $.goodsBaseId, canBeNull = false)
    private String goodsBaseId;

    @DatabaseField(columnName = $.goodsId, canBeNull = false)
    private String goodsId;

    @DatabaseField(columnName = $.templateId, canBeNull = false)
    private String templateId;

    public String getFeatureGroupId() {
        return featureGroupId;
    }

    public void setFeatureGroupId(String featureGroupId) {
        this.featureGroupId = featureGroupId;
    }

    public String getFeatureId() {
        return featureId;
    }

    public void setFeatureId(String featureId) {
        this.featureId = featureId;
    }

    public String getGoodsBaseId() {
        return goodsBaseId;
    }

    public void setGoodsBaseId(String goodsBaseId) {
        this.goodsBaseId = goodsBaseId;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(super.toString());
        sb.append(",featureGroupId=").append(featureGroupId);
        sb.append(",featureId=").append(featureId);
        sb.append(",goodsBaseId=").append(goodsBaseId);
        sb.append(",goodsId=").append(goodsId);
        sb.append(",templateId=").append(templateId);
        return sb.toString();
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }

}

